<#assign dtoClass = entity + "DTO">
<#assign dtoParam = entity?substring(0,1)?lower_case + entity?substring(1) + "DTO">
<#assign entityParam = entity?substring(0,1)?lower_case + entity?substring(1)>
<#assign tableComment = table.comment!?substring(0, table.comment!?length - 1)>
package ${package.Service};

import ${dtoPackage}.${dtoClass};
import cn.com.blueInfo.utils.result.ResultInfo;

/**
* ${tableComment} 业务服务类
* @author ${author}
* @since ${date}
*/
public interface ${table.serviceName} {

    /**
    * 新增${tableComment}
    * @param ${dtoParam} ${tableComment}参数
    */
    ResultInfo add${entity}(${dtoClass} ${dtoParam});

    /**
    * 删除${tableComment}
    * @param ${entityParam}Id ${tableComment}ID
    */
    ResultInfo remove${entity}(String ${entityParam}Id);

    /**
    * 更新部分${tableComment}
    * @param ${dtoParam} ${tableComment}参数
    */
    ResultInfo modify${entity}Partial(${dtoClass} ${dtoParam});

    /**
    * 更新全部${tableComment}
    * @param ${dtoParam} ${tableComment}参数
    */
    ResultInfo modify${entity}(${dtoClass} ${dtoParam});

    /**
    * 查询一条${tableComment}
    * @param ${entityParam}Id ${tableComment}ID
    */
    ResultInfo query${entity}ById(String ${entityParam}Id);

    /**
    * 分页查询${tableComment}
    * @param ${dtoParam} ${tableComment}参数
    */
    ResultInfo query${entity}Page(${dtoClass} ${dtoParam});

}
    